#ifndef PLUGINDEMO_H
#define PLUGINDEMO_H

#include "PluginDemo_global.h"
#include "Plugininterface.h"

class PLUGINDEMO_EXPORT PluginDemo:public QObject,public PluginDemointerface    //继承接口
{
    Q_OBJECT    //Qt关键
    Q_PLUGIN_METADATA(IID pluginiid)    //插件元数据
    Q_INTERFACES(PluginDemointerface)   //接口声明
public:
    PluginDemo();   //实列构造
    ~PluginDemo();  //实例析构
    QWidget *widgetshow();  //实列虚方法
private:
    QWidget *mywidget;  //避免内存泄露，内部实例化与释放
};

#endif // PLUGINDEMO_H
